Skip to content

Fix the implementation of the default dialect for the keywords provider#404

Merged
acoulton merged 1 commit intoBehat:masterfrom
stof:fix_keywords_dialect
Dec 5, 2025
Merged

Fix the implementation of the default dialect for the keywords provider#404
acoulton merged 1 commit intoBehat:masterfrom
stof:fix_keywords_dialect

Conversation

@stof
Copy link
Member

@stof stof commented Dec 4, 2025

The legacy KeywordsInterface was stateful, so we cannot assume that the current language is the default one. We need to read the initial language instead.

Closes #403

The legacy KeywordsInterface was stateful, so we cannot assume that the
_current_ language is the default one. We need to read the _initial_
language instead.
@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.67%. Comparing base (ec034ab) to head (df8fe06).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #404   +/-   ##
=========================================
  Coverage     95.66%   95.67%           
  Complexity      682      682           
=========================================
  Files            45       45           
  Lines          2009     2010    +1     
=========================================
+ Hits           1922     1923    +1     
  Misses           87       87           
Flag Coverage Δ
php8.1 95.67% <100.00%> (+<0.01%) ⬆️
php8.1--with=symfony/yaml:^5.4 95.67% <100.00%> (+<0.01%) ⬆️
php8.1--with=symfony/yaml:^6.4 95.67% <100.00%> (+<0.01%) ⬆️
php8.2 95.67% <100.00%> (+<0.01%) ⬆️
php8.3 95.67% <100.00%> (+<0.01%) ⬆️
php8.4 95.67% <100.00%> (+<0.01%) ⬆️
php8.5 95.67% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@acoulton acoulton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @stof

@acoulton acoulton merged commit dc8d60f into Behat:master Dec 5, 2025
11 checks passed
@stof stof deleted the fix_keywords_dialect branch December 5, 2025 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Changed behavior in v4.15 when parsing test files with different languages

2 participants